<template>
<div>
  <h1 >home---</h1>
  {{ $store.state.userInfo }}
  <charts ref="myecharts"  />
</div>
</template>

<script>
import charts from "../../components/charts";
export default {
  name: "home",
  components:{
    charts
  },
  mounted() {
    this.$refs.myecharts.setOption({
      xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
      },
      yAxis: {
        type: 'value'
      },
      series: [
        {
          data: [450, 230, 224, 218, 135, 147, 260],
          type: 'line'
        }
      ]
    })
  }
}
</script>

<style scoped>

</style>
